package com.itc.dispatch.domain.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TriggerDto implements Serializable {

    /**
     * 告警类型主键id
     */
    @ApiModelProperty(value = "告警类型主键id",required = true)
    @NotNull(message = "告警类型主键id不能为空")
    private Long id;

    /**
     * 当前处置下的告警中心主键id
     */
    @ApiModelProperty(value = "当前处置下的告警中心主键id")
    private Long centerId;

    /**
     * 告警内容
     */
    @NotBlank(message = "告警内容不能为空")
    @ApiModelProperty(value = "告警内容",required = true)
    private String alarmMsg;

    /**
     * 告警等级
     */
    @NotNull(message = "告警等级不能为空")
    @ApiModelProperty(value = "告警等级",required = true)
    private Integer alarmGrade;



    /**
     * 告警管理触发_0,告警中心触发_1
     */
    @ApiModelProperty("告警管理触发_0,告警中心触发_1")
    private Integer triggerType;

}
